package chapter7;

import java.util.Objects;

/**
 * Java7新增的Objects工具类
 */
public class ObjectsTest {
    static ObjectsTest ots;

    public static void main(String[] args) {
        System.out.println(Objects.hashCode(ots));
        System.out.println(Objects.toString(ots));
        System.out.println(Objects.requireNonNull(ots, "obj参数不能为null!"));
    }
}
